package JavaSE.CODE.javaIO;

import java.io.FileOutputStream;

public class FileOutputStreamDemo {
    public static void main(String[] args) throws Exception{
        //1创建文件字节输出对象
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\fileOut.txt");

        fileOutputStream.write(97);
        fileOutputStream.write('b');
        fileOutputStream.write('c');

        String string = "helloworld";
        fileOutputStream.write(string.getBytes());


        fileOutputStream.close();
    }
}
